package com.ticket.sass.admin.dto.output.pricecheme;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author ywb
 * @date 2024-03-20 16:28
 */
@Data
@ApiModel("会员价输入")
public class MemberPriceOutput {
    @ApiModelProperty(value = "会员级别ID")
    private Long memberLevelId;
    
    @ApiModelProperty(value = "会员级别名称")
    private String memberLevelName;
    
    @ApiModelProperty(value = "折扣类型：1 立减，2 折扣，3 固定")
    private Short type;
    
    @ApiModelProperty(value = "折扣值")
    private BigDecimal value;
    
    @ApiModelProperty(value = "首单启用")
    private Boolean firstEnable;
    
    public MemberPriceOutput() {
    }
    
    public MemberPriceOutput(Long memberLevelId, String memberLevelName, Short type, BigDecimal value, Boolean firstEnable) {
        this.memberLevelId = memberLevelId;
        this.memberLevelName = memberLevelName;
        this.type = type;
        this.value = value;
        this.firstEnable = firstEnable;
    }
}
